package com.ruoyi.omp.api;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 物资月报对象 omp_ma_material_report
 *
 * @author felix
 * @date 2022-06-12
 */
@Data
@ApiModel
public class MaterialReport extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(value = "主键")
    private String id;

    /** 物资 */
    @Excel(name = "物资")
    @ApiModelProperty(value = "物资")
    private String materialId;

    /** 物料编码 */
    @Excel(name = "物料编码")
    @ApiModelProperty(value = "物料编码")
    private String materialCode;

    /** 出库数量 */
    @Excel(name = "出库数量")
    @ApiModelProperty(value = "出库数量")
    private double outStorage = 0;

    /** 入库数量 */
    @Excel(name = "入库数量")
    @ApiModelProperty(value = "入库数量")
    private double inStorage = 0;

    /** 上月结存 */
    @Excel(name = "上月结存")
    @ApiModelProperty(value = "上月结存")
    private double lastBalance = 0;

    /** 当月结存 */
    @Excel(name = "当月结存")
    @ApiModelProperty(value = "当月结存")
    private double nowBalance = 0;

    /** 报表时间 */
    @JsonFormat(pattern = "yyyy-MM")
    @Excel(name = "报表时间", width = 30, dateFormat = "yyyy-MM")
    @ApiModelProperty(value = "报表时间")
    private Date reportDate;

    /** 园区 */
    @Excel(name = "园区")
    @ApiModelProperty(value = "园区")
    private String parkId;

    /** 存放地点 */
    @Excel(name = "存放地点")
    @ApiModelProperty(value = "存放地点")
    private String address;


    /** 存放地点 */
    @Excel(name = "仓库ID")
    @ApiModelProperty(value = "仓库ID")
    private String houseId;



}
